package com.taowan.xunbaozl.morning_speak.design_pattern.pre;

/**
 * Created by 杨观回 on 2016/2/29 0029.
 */
public class Test {
    public static void main(String[] args) {
        IComponent contractComponet = new ContractComponet();
        IComponent component = new DecoratorComponet2(new DecoratorComponet1(contractComponet));
        component.operation();
    }
}
